package com.scau.hwadee.examination.mapper;

import com.scau.hwadee.examination.entity.Examsession;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author YHX
 * @date 2019/7/29  9:01
 * @description
 */
public interface ExamsessionMapper {
    int deleteByPrimaryKey(String esId);

    int insert(Examsession record);

    int insertSelective(Examsession record);

    Examsession selectByPrimaryKey(String esId);

    int updateByPrimaryKeySelective(Examsession record);

    int updateByPrimaryKey(Examsession record);

    List<Examsession> selectAllExamSessions(@Param("pageNum") int pageNum,
                                            @Param("pageSize") int pageSize,
                                            @Param("state") Integer state);

    List<Examsession> selectAllExamSessionsWithoutCourse(@Param("pageNum") int pageNum,
                                                         @Param("pageSize") int pageSize);

    List<Examsession> selectAllExamSessionsWithoutMajorPlan(@Param("pageNum")int pageNum,
                                                            @Param("pageSize")int pageSize);

}
